﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataRole_List.aspx.cs" Inherits="SysManage_DataRole_List" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>数据角色展示</title>
 <link rel="stylesheet" href ="../css/css.css" type="text/css" />
  <script language="javascript" type="text/javascript"  >
   function GetRowInfo(obj)
   {
     form1.Hobj.value = obj;
     var ary = obj.split('~'); 
     form1.HCheckInCode.value = ary[0];   //角色代码 
     form1.FuncRoleCoDE.value = ary[3];   //对应功能操作角色代码     
   }
   var tgs; 
   var tmp_background_val; 
   function tog(n,flags)
   { 
     //傳過來本次點擊前的的背景顏色 
     if (tgs){ 
     tgs.style.background= tmp_background_val ; 
   } 
   //考慮到連續點同一個對象的情況,就不要改變保留的顏色 
    n.style.background= '#A7C0F9' ; 
    tmp_background_val=flags;
    tgs=n; 
  } 
</script>
</head>
<body style =" background-image :url('../images/hit_bg.gif');"> 
   <form id="form1" runat="server">        
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
  	           <table  style ="height :30; " width="100%" border="0" align="center" cellpadding="2" cellspacing="0" >
                <tr> 
                  <td>角色编码&nbsp;<asp:TextBox ID="Role_Code" runat="server" Width="100px"></asp:TextBox>
                      角色名称&nbsp;<asp:TextBox ID="Role_Name" runat="server" Width="100px"></asp:TextBox>
                        <input id="SearchRoleInfo" name="Query" type="submit" runat="server"  class="button03" value=" 查 询(F) "  accesskey="f"  onserverclick="SearchCheckInInfo_ServerClick" />
                  </td>
                </tr>
              </table>
              </td>
            </tr>
            <tr>
            
              <td style="height :300;width:100%" valign="top" >
          <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="Role_Code" OnRowDataBound="GridView1_RowDataBound"
            ForeColor="#333333" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"  PageSize="20" EmptyDataText="没搜索到相匹配的数据"  OnSorting="GridView1_Sorting"  BorderColor="#F9F9FB" BorderStyle="Dotted" GridLines="Vertical"  >        
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
            <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px"  BorderStyle="Dotted" />
            <AlternatingRowStyle BackColor="#EFEFF8" />
            <HeaderStyle BackColor="#E3E7F0" Height="25px" />
            <Columns>
                <asp:BoundField DataField="Role_Code"  HeaderText="角色编码" SortExpression ="Role_Code" >
                  <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>                   
                <asp:BoundField DataField="Role_Name" HeaderText="角色名称"  SortExpression ="Role_Name">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>                
                <asp:BoundField DataField="Role_Descr" HeaderText="角色描述"  SortExpression ="Role_Descr">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                        <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Ctrl_Role" HeaderText="功能角色" SortExpression ="Ctrl_Role">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Creator_Role" HeaderText="创建人角色" SortExpression ="Creator_Role">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Effective" HeaderText="是否有效" SortExpression ="Effective">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Field_List" HeaderText="字段链表" SortExpression ="Field_List"  >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="DataItem_List" HeaderText="组织授权" SortExpression ="DataItem_List"  >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="DataItemName_List" HeaderText="组织授权" SortExpression ="DataItemName_List">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="RoleIDCol" HeaderText="角色授权" SortExpression ="RoleIDCol"  >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="RoleNameCol" HeaderText="角色授权" SortExpression ="RoleNameCol">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="DocIDCol" HeaderText="文档授权" SortExpression ="DocIDCol"  >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="DocNameCol" HeaderText="文档授权" SortExpression ="DocNameCol">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
            </Columns>
           <PagerSettings FirstPageImageUrl="../images/BeginPage.gif" LastPageImageUrl="../images/EndPage.gif"
            NextPageImageUrl="../images/NextPage.gif" PreviousPageImageUrl="../images/PrePage.gif" Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" />
                 <EmptyDataRowStyle HorizontalAlign="Center" />
            </asp:GridView>
                </td>
            </tr>
            <tr>
              <td align ="right" >共<%=AllCount%>条记录&nbsp;<%=NowPageCount%>/<%= AllPageCount%>页&nbsp;</td>
            </tr>
     </table> 
     <input type="hidden"  id="Hobj" />
     <input type="hidden"  id="HCheckInCode" runat ="server"  />
     <input type="hidden"  id="FuncRoleCoDE" runat ="server"  />
     <asp:Button ID="BtnExport" runat="server"  Text="Button" Width="0px" Height="0px" OnClick="BtnExport_Click" />
        <asp:Button ID="BtnDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnDel_Click"  />
        <asp:Button ID="BtnDispDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnDispDel_Click"  />
        <asp:Button ID="BtnHideDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnHideDel_Click" />
        <asp:Button ID="BtnRefresh" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnRefresh_Click"  />
        <asp:Button ID="BtnResume" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnResume_Click" />
    </form>
</body>
</html>
